package com.example.kekewaimaibao.deliver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.kekewaimaibao.deliver.mapper.DeliverMapper;
import com.example.kekewaimaibao.deliver.model.DeliverDO;
import com.example.kekewaimaibao.deliver.service.IDeliverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author: xuxiang
 * @date: 2022/3/6 22:48 星期日
 * @description:
 * @version: 1.0
 */
@Service
public class DeliverServiceImpl extends ServiceImpl<DeliverMapper, DeliverDO> implements IDeliverService {

    @Autowired
    DeliverMapper deliverMapper;


    @Override
    public Map<String, Object> getDayDashBoard(Long riderId) {
        return deliverMapper.getDayDashBoard(riderId);
    }

    @Override
    public Map<String, Object> getMonthDashBoard(Long riderId) {
        return deliverMapper.getMonthDashBoard(riderId);
    }

    @Override
    public Map<String, Object> getYearDashBoard(Long riderId) {
        return deliverMapper.getYearDashBoard(riderId);
    }
}
